home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 290 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  724 b 

  1. Path: news.erg.cuhk.hk!ywleung
  2. From: ywleung@cs.cuhk.hk (Marty McFly)
  3. Newsgroups: comp.lang.c++
  4. Subject: Question about destructor...
  5. Date: 3 Jan 1996 16:08:52 GMT
  6. Organization: Engineering Faculty CUHK
  7. Message-ID: <4ce9mk$atg@eng_ser1.erg.cuhk.hk>
  8. NNTP-Posting-Host: sun19.cs.cuhk.hk
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Dear All,
  12.  
  13.     I now have 2 classes A and B.  B is a derived class of A.  However,
  14. the internal implementation of A is not known, i.e., the private members of
  15. class A are not provided, only the public members are given.  But class B is 
  16. implemented by myself.  So what should be written in the destructor of B so 
  17. that all the private members inherited from A are also "deleted"?
  18.  
  19. Regards,
  20. Marty McFly.
  21.  
  22.  
  23.